package com.kangye.enterprise.frontdesk.controller;

import com.kangye.enterprise.frontdesk.entity.Gzcircular;
import com.kangye.enterprise.frontdesk.service.GzcircularService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: enterprise
 * @description:
 * @author: 索腾龙
 * @create: 2021-06-01 20:26
 **/
@RestController
@CrossOrigin
@RequestMapping("/gzcircular")
public class GzcircularController {
    @Autowired
    private GzcircularService service;
    //用户关注通知,政策,项目(索腾龙)
    @RequestMapping("/addGzcircular")
    private String addGzcircular(Gzcircular gzcircular){
        //用code去接收
        Integer code = service.addGzcircular(gzcircular);
        if (code>0){
            return "200";
        }else{
            return "201";
        }
    }

}